<?php /* Smarty version 2.6.16, created on 2013-08-26 11:53:41
         compiled from ../templates/default//modules/myaccount/message_reply.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/dashboard.css">'; ?>

<?php echo '
<script type="text/javascript" language="javascript">
function validateMsg()
{
	if(document.getElementById(\'subject\').value == \'\')
	{
		document.getElementById(\'subdiv\').innerHTML = "Please enter subject";
		document.getElementById(\'subject\').focus();
		return false;
	}
	else
		document.getElementById(\'subdiv\').innerHTML = "";
		
	if(document.getElementById(\'message\').value == \'\')
	{
		document.getElementById(\'msgdiv\').innerHTML = "Please enter message";
		document.getElementById(\'message\').focus();
		return false;
	}
	else
		document.getElementById(\'msgdiv\').innerHTML = "";
			
	return true;
}
</script>
'; ?>


<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	<!-- dashboard Left Content Start -->
        	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['cms_left_content'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            	<section class="title_box">
                    <h4>Compose Message</h4>
                   <section class="clear"></section>
                </section>
              <section class="tab_wrapp" id="tabs">
                            <section class="tab_nav">
                                <ul>
                                    <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/mymessages/">Inbox</a></li>
                                    <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/mysentmessages/">Sent Item</a></li>
                                    <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/message_reply/" class="active">Compose</a></li>
                                    <section class="clear"></section>
                                </ul>                                
                            </section>
                             <form name="frmReply" id="frmReply" method="post" onsubmit="return validateMsg();">
                            <section class="tab_des_wrapp" id="compose">
                            	<section class="compose_box">
                           		<ul>
                            	<!--<li>
                                	<label>Select :</label>
                                    <select><option>Teacher</option></select>
                                 </li>-->
                                 <li>
                                	<label>From :</label>
                                   <input type="text" name="fromname" id="fromname" value="<?php echo $this->_tpl_vars['userDetArr']['first_name']; ?>
 <?php echo $this->_tpl_vars['userDetArr']['last_name']; ?>
" readonly="readonly">
                                 </li>
                                 <li>
                                	<label>To :</label>
                                   <input type="text" name="toname" id="toname" value="Administrator" readonly="readonly"><!--<?php echo $this->_tpl_vars['adminDetArr']['first_name']; ?>
 <?php echo $this->_tpl_vars['adminDetArr']['last_name']; ?>
-->
                                 </li>
                                 <li>
                                	<label>Subject :</label>
                                    <input type="text" name="subject" id="subject" <?php if ($this->_tpl_vars['getmessagedetail']['subject'] != ''): ?> value="Reply: <?php echo $this->_tpl_vars['getmessagedetail']['subject']; ?>
" <?php endif; ?>>							     <section class="clear"></section>
                                     <div style="margin-left:230px;"  class="error" id="subdiv"></div>
                                 </li>
                                 <li>
                                	<label>Message :</label>
                                    <textarea name="message" id="message" style="margin-bottom:5px;overflow: auto;resize:none;"></textarea> 
                                     <section class="clear"></section>
                            
                                    <div  style="margin-left:230px; margin-bottom:10px;" class="error" id="msgdiv"></div>
                                    <section class="clear"></section>
                                    
                                 </li>
                            </ul>
                            </section>
                            <section class="bt_save_wrapp">
                            <input type="submit" name="submit" value="Send" class="bt_save">
                            <input type="button" value="Cancel" onclick="window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/mymessages';" class="bt_save" >
                            </section>
                            
                           </section>
                            </form>
            			</section>
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>